#include <stdio.h>
#include <stdlib.h>

struct student
{
	char sno[8];
	char name[20];
	char sex;
	int age;
	double score;
};

int main(void)
{
	struct student *p;

	puts("Input the student's information(sex, sno, name, age, score):");
	p = (struct student *)malloc(sizeof(struct student));
	scanf("%c%s%s%d%lf", &p->sex, p->sno, p->name, &p->age, &p->score);
	printf("sno: %s\n", p->sno);
	printf("name: %s\n", p->name);
	printf("sex: %c\n", p->sex);
	printf("age: %d\n", p->age);
	printf("score: %.1f\n", p->score);
	free(p);

	return 0;
}